package com.atguigu.spzx.mapper;


import com.atguigu.spzx.model.entity.product.Category;
import com.atguigu.spzx.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> selectByParentId(Long parentId);

    Integer countByParentId(Long parentId);

    List<Category> selectAll();


    void batchInsert(@Param(value = "categoryList") List<CategoryExcelVo> cachedDataList);
}
